import { createApp } from 'vue'
import App from '@/App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '@/router'
import '@/assets/css/style.css'
import '@/assets/js/iconfont.js'
import elementPlusIconPlugin from '@/plugins/element-plus-icon-plugin.ts'
import errorHandlerPlugin from '@/plugins/error-handler-plugin.ts'
import mdEditorV3Plugin from '@/plugins/md-editor-v3-plugin.ts'
import { createPinia } from 'pinia'
import VueKonva from 'vue-konva'

createApp(App)
  .use(createPinia())
  .use(router)
  .use(ElementPlus)
  .use(elementPlusIconPlugin)
  .use(errorHandlerPlugin)
  .use(mdEditorV3Plugin)
  .use(VueKonva)
  .mount('#app')
